package cn.hjm.hrm.feign.client;

import cn.hjm.hrm.domain.Productstore;
import cn.hjm.hrm.dto.ProductDto;
import cn.hjm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "system-store",fallbackFactory = StoreFeginFallBack.class)
public interface StoreFeginClient {
    @GetMapping("/productstore/productstore/{id}")
    public Productstore getById(@PathVariable("id") Long id);

    @PostMapping("/productstore/productstore/number")
    public AjaxResult getNumber(@RequestBody ProductDto productDto);
}
